#ifndef _PLATECONF_H_
#define _PLATECONF_H_

#ifdef PC
    #include <stdio.h>
#endif


#include <inttypes.h>
typedef struct {
    uint8_t pAbsis;
    uint8_t pOrdinat;
    uint8_t targetTemp;
    uint8_t actTemp;
    uint8_t bgTemp;
    uint8_t Kp;
    uint8_t Ki;
    uint8_t Kd;
} plateConf;

void initPlateConf ( plateConf* );

void setAbsis ( plateConf* , uint8_t );
void setOrdinat ( plateConf* , uint8_t );
void setTargetTemp ( plateConf* , uint8_t );
void setActTemp ( plateConf* , uint8_t );
void setBgTemp ( plateConf* , uint8_t );
void setKp ( plateConf* , uint8_t );
void setKi ( plateConf* , uint8_t );
void setKd ( plateConf* , uint8_t );

uint8_t getAbsis ( plateConf );
uint8_t getOrdinat ( plateConf );
uint8_t getTargetTemp ( plateConf );
uint8_t getActTemp ( plateConf );
uint8_t getBgTemp ( plateConf );
uint8_t getKp ( plateConf );
uint8_t getKi ( plateConf );
uint8_t getKd ( plateConf );

#ifdef PC
    void printPlateConf ( plateConf );
    int isPConfEqual ( plateConf, plateConf );
#endif

#endif
